<template>
  <div id="introduce">
    <div class="introduce-top">
      <div class="vourse-img">
        <img :src="require('@/assets/img/aikejianshao.webp')" alt="" />
      </div>
      <span>爱课介绍</span>
    </div>
    <div class="introduce-bottom">
      <div class="introduce-bottom-img" v-for="item in intrpducelist" :key="item">
        <img :src="item.path" alt="" />
      </div>
    </div>
  </div>
  <div id="read-bottom">
    <p>爱课，小朋友的第一堂哈佛课</p>
  </div>
</template>

<script>
import { getintroduce } from "../../utils/api";

export default {
  data() {
    return {
      intrpducelist: []
    };
  },

  components: {},

  computed: {},

  mounted() {
    this.getintroducelist();
  },

  methods: {
    async getintroducelist() {
      const res = await getintroduce();
      this.intrpducelist = res.result;
    }
  }
};
</script>
<style lang="scss" scoped>
#introduce {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  .introduce-top {
    width: 100%;
    height: 60px;
    display: flex;
    // justify-content: center;
    align-items: center;
    span {
      margin-left: 5px;
      font-size: 17px;
      font-weight: 600;
    }
    .vourse-img {
      width: 25px;
      height: 25px;
      img {
        width: 23px;
        height: 24px;
      }
    }
  }
  .introduce-bottom {
    width: 100%;
    height: 140px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    .introduce-bottom-img {
      width: 110px;
      height: 130px;
      border-radius: 20px;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
#read-bottom {
  margin-bottom: 70px;
  height: 20px;
  p {
    font-size: 11.5px;
    // line-height: 50px;
    text-align: center;
  }
}
</style>
